<template>
    <div class="team_main">
        <el-form :model="ruleForm" :inline="true"   :rules="rules" ref="ruleForm"
                 size='mini' label-width="120px" class="form-mini">
            <
        </el-form>
    </div>
</template>
<script>
    export default{
        props: {
            ruleForm: {
                type: Object,
                default: function () {
                    return {
                    }
                }
            },
            rules:{
                type:Object,
                default:function () {
                    return {
                    }
                }
            }
        },
        methods: {
            //子组件校验，传递到父组件
            validateForm () {
                let flag = null
                this.$refs['ruleForm'].validate(valid => {
                    if (valid) {
                        flag = true
                    } else {
                        flag = false
                    }
                })
                return flag
            }
        }
    }
</script>
<style>
    .team_main{
        width: 680px;
    }
</style>